<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
	
	<table class="table">
	<html:form action="/control/group/groupAdd.do" method="post">
						<tr class="table_header"><td>新增权限组</td><td>内容</td></tr>
						<tr class= "row1">
							<td>权限组名</td>
							<td><html:text property="name" ></html:text></td>
						</tr>
						<tr class= "row1">
							<td>等级</td>
							<td><html:text property="level" value="${data.level}"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>权限集</td>
							
							<td>
							<table>
								<tr>
									<td>前台权限</td>
									<td>后台权限</td>
								</tr>
								
								<tr>
									<td>
									<c:forEach items="${datas}" var="d" varStatus="i">
									<c:if test="${fn:contains(d.value,'front')}">
										<html:checkbox property="privileges" value="${d.value}">${d.name}</html:checkbox><br/>
									</c:if>
									</c:forEach>
									</td>
									<td>
									<c:forEach items="${datas}" var="d" varStatus="i">
									<c:if test="${fn:contains(d.value,'control')}">
										<html:checkbox property="privileges" value="${d.value}">${d.name}</html:checkbox><br/>
									</c:if>
									</c:forEach>
									</td>
								</tr>
							</table>
							</td>
							
						</tr>
			<tr>
			<td><html:submit value="确定"></html:submit></td><td><html:reset value="重置"></html:reset></td>
			</tr>
	</html:form>					
	</table>

</body>
</html>